<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColReviewRemarkToDistributionWithdrawsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('distribution_withdraws', function (Blueprint $table) {
            $table->string('review_remark')->nullable()->default('')->comment('审核备注')->after('review_status');
            $table->string('transfer_remark')->nullable()->default('')->comment('转账备注')->after('transfer_status');
            $table->string('payment_no')->nullable()->default('')->comment('订单号')->after('transfer_status');
            $table->timestamp('payment_time')->nullable()->comment('支付时间')->after('transfer_status');

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('distribution_withdraws', function (Blueprint $table) {
            //
        });
    }
}
